package com.hoyue.classroom.service.impl;

import com.hoyue.classroom.bean.Classes;
import com.hoyue.classroom.dao.ClassesMapper;
import com.hoyue.classroom.service.ClassesService;
import com.hoyue.exam.service.impl.BaseServiceImpl;
import com.hoyue.exam.vo.ClassesConditionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author SiMan
 * @date 2019/9/5 9:27
 */
@Service
public class ClassesServiceImpl extends BaseServiceImpl<Classes> implements ClassesService {

	@Autowired
	private ClassesMapper classesMapper;

	@Override
	public List<Classes> findByCondition(ClassesConditionVo vo) {
		return classesMapper.findByCondition(vo);
	}

	@Override
	public Classes selectById(Integer id) {
		return classesMapper.selectById(id);
	}

	@Override
	public int validateByClassIds(Integer[] ids) {
		return classesMapper.validateByClassIds(ids);
	}

	@Override
	public int deleteBatch(Integer[] ids) {
		return classesMapper.deleteBatch(ids);
	}

}